package src.messagesToServer;

import java.util.List;



import src.categoryStructures.Category;
import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This class is a command to the server to get an item list with the given parameters
 * @author John Stewart
 */
public class GetItemCategory extends MessageToServer {
	public boolean redoable = true;
	
	private Category categories;
	private int start;
	private int length;

	public GetItemCategory(Category categories, int start, int length) {
		this.categories = categories;
		this.start = start;
		this.length = length;
	}

	@Override
	public MessageToClient execute(String address, Control control) {
		return control.getItemCategory(categories, start, length);
	}

}
